package com.bckj.fastboot.iot.common.repository;

import org.springframework.data.domain.Pageable;
import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.iot.common.dto.query.IotAlarmDataQuery;
import com.bckj.fastboot.iot.common.dto.request.IotAlarmDataRequest;
import com.bckj.fastboot.iot.common.dto.response.IotAlarmDataResponse;

import java.util.List;

/**
 * IotAlarmDataRepository
 *
 * @author wfc
 * @date 2025/9/28 16:39
 **/
public interface IotAlarmDataRepository {

    boolean save(IotAlarmDataRequest request);

    boolean updateById(IotAlarmDataRequest request);

    boolean removeById(Long id);

    IotAlarmDataResponse details(Long id);

    IotAlarmDataResponse findLatestOne(IotAlarmDataQuery query);

    List<IotAlarmDataResponse> findList(IotAlarmDataQuery query);

    PageResult<IotAlarmDataResponse> page(Pageable page, IotAlarmDataQuery query);
}
